a {
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

img {
  width: 100%;
}

body {
  background-color: #f2f2f2;
}

.container {
  width: 540px;
  min-height: 500px;
  /* background-color: skyblue; */
  margin: 0 auto;
  height: 3000px;
}

.search_box {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* position: relative; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 540px;
  height: 45px;
  /* 因为加了宽度 加了 padding  所以 会撑开 盒子 加 内减 */
  box-sizing: border-box;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0 13px 0 8px;
  background-color: #fff;
}

.search_box::after {
  position: absolute;
  left: 15px;
  top: 17px;
  content: '';
  width: 14px;
  height: 14px;
  background: url(../images/sprite.png) no-repeat -60px -280px;
  background-size: 104px;
}

.search_box .ipt {
  position: relative;
  flex: 1;
  height: 26px;
  padding-left: 20px;
  border-radius: 7px;
  border: 1px solid #999;
  outline: none;
  box-shadow: 1px 7px 12px #ccc;
}


.search_box a {
  width: 28px;
  /* background-color: skyblue; */
  margin-left: 10px;
  font-size: 12px;
  color: #2eaae0;
}

.search_box a .icon {
  display: block;
  width: 23px;
  height: 23px;
  background-color: red;
  background: url(../images/sprite.png) no-repeat -59px -194px;
  background-size: 104px auto;
}

/* 焦点图 */
.focus {
  margin-top: 45px;
  border-bottom: 4px;
}

/* 头部导航栏 */
.top_nav {
  height: 64px;
  margin: 0 5px;
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 4px;
}

.top_nav ul {
  display: flex;
  height: 64px;
}

.top_nav ul li {
  flex: 1;
}

.top_nav ul li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 64px;
  color: #222;
  font-size: 12px;
}

.top_nav ul li .icon {
  width: 32px;
  height: 32px;
  background: url(../images/localnav_bg.png) no-repeat 0 0;
  background-size: 32px;
  margin-bottom: 4px;
}

.top_nav ul li:nth-child(2) .icon {
  background-position: 0 -32px;
}

.top_nav ul li:nth-child(3) .icon {
  background-position: 0 -64px;
}

.top_nav ul li:nth-child(4) .icon {
  background-position: 0 -96px;
}

.top_nav ul li:nth-child(5) .icon {
  background-position: 0 -128px;
}

/* 主导航 */
.main_nav {
  height: 270px;
  border-radius: 10px;
  background-color: pink;
  overflow: hidden;
  margin-left: 4px;
  margin-right: 4px;
}

.main_nav .nav_item {
  display: flex;
  height: 88px;
}

.main_nav .nav_item .items {
  flex: 1;
  display: flex;
  text-align: center;
  flex-direction: column;
  line-height: 44px;
}

.main_nav .nav_item a {
  flex: 1;
  color: #fff;

}

.main_nav .nav_item .items:nth-child(2) {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.main_nav .nav_item .items:first-child a:first-child {
  background: url(../images/hotel.png) no-repeat bottom center;
  background-size: 121px auto;
}

.main_nav .nav_item .items:nth-child(n + 2) a:first-child {
  border-bottom: 1px solid #fff;
}

/* 单独设置三个盒子的颜色 */
.main_nav .nav_item:first-child {
  background-image: linear-gradient(to right, #fa5a56, #fa9a4d);
}

.main_nav .nav_item:nth-child(2) {
  background-image: linear-gradient(to right, #4d90ed, #53dbed);
  margin: 3px 0;
}

.main_nav .nav_item:last-child {
  background-image: linear-gradient(to right, #35c2a9, #6ad458);
}

/* 服务模块 */
.service {
  height: 117px;
  margin: 4px 4px 7px 4px;
  border: 1px solid #cfcfcf;
  border-top: 0;
  border-radius: 10px;
  background-color: #fff;
  overflow: hidden;
}

.service ul {
  display: flex;
  flex-wrap: wrap;
  height: 117px;
}

.service ul li {
  /* felx: 百分比 ; 加换行 是可以 生效的。--  因为给了具体的 百分之宽  多少 */
  flex: 20%;
  /* 这里 不能设置 数字；-- 因为 设置 数字 之后，即使添加换换行属性也是 在一行内显示 ，因为是平均分配 */
  /* flex: 1; */
}



.service ul li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* 必须写 高度 ，  不写高度  justify-content: center; 不生效 */
  height: 100%;
  font-size: 12px;
  color: #222;
}

.service ul li a em {
  width: 24px;
  height: 24px;
  background: url(../images/subnav-bg.png) no-repeat 0 0;
  background-size: 24px;
  margin-bottom: 10px;
}

.service ul li:nth-child(2) em {
  background-position: 0 -24px;
}

.service ul li:nth-child(3) em {
  width: 25px;
  height: 25px;
  background-position: 2px -52px;
}

.service ul li:nth-child(4) em {
  background-position: 0 -83px;
}

.service ul li:nth-child(5) em {
  background-position: 0 -113px;
}

.service ul li:nth-child(6) em {
  background-position: 0 -139px;
}

.service ul li:nth-child(7) em {
  background-position: 0 -168px;
}

.service ul li:nth-child(8) em {
  background-position: 0 -198px;
}

.service ul li:nth-child(9) em {
  background-position: 0 -223px;
}

.service ul li:nth-child(10) em {
  background-position: 0 -249px;
}